package com.wish233.wrpcspringbootstarter.annotation;

import com.wish233.constant.RpcConstant;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author WHH
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface WrpcService {

    /**
     * service的class类
     * @return
     */
    Class<?> serviceClass() default void.class;

    /**
     * 版本
     * @return
     */
    String version() default RpcConstant.DEFAULT_SERVICE_VERSION;


}
